<link rel="stylesheet" href="/styles/thickbox.css" />
<script type="text/javascript" src="/scripts/thickbox.js"></script> 
 <table border="0" cellspacing="0" cellpadding="0" align="center">
    <tr>
<td valign="top"><div class="Col">
<tal:block tal:content="structure php: this.partial('myactivity/myactivity.html')"/>
</div></td>
      <td valign="top"><div class="Col">
          <div class="ModuleBlock">
            <h1>
              <label>Photos / Videos</label>
              <div>
			  <a href="/album/index/all"  ><img src="/images/HomeIcon.png" alt="Settings" width="15" height="17" border="0" align="top" class="SetIcon" title="Settings"/></a> 
			  <a id="create" href="javascript:void(0);" onclick="createAlbum();"><img src="/images/CreateAddIcon.png" alt="Create" width="15" height="15"  border="0"  align="top" class="SetIcon" title="Create"/></a>
<a href="#"><img src="/images/pie-chartIcon.png" alt="Activity Summary" width="14" height="14"  border="0"  align="top" class="SetIcon" title="Activity Summary"/></a></div>
              <div class="wid186">
                <input name="text2" type="text" value="search" />
                <a href="#"><img src="/images/ModSearchIcon.png" border="0" class="SerImg" /></a></div>
            </h1>
            <div class="clear"></div>
            <ul class="ModuleMenu">
              <li><a href="/album/settings/album-settings" class="active">Connect</a> </li>
              <li><a href="/album/settings/album-notices">Notices</a> </li>
            </ul>
            <div class="clear hig20"></div>
			<div id="messageDis" style="color:red;padding:5px 5px;"></div>
            <div class="pad_a ModuleHig">
				
              <div>
                <div class="Fleft pad_t5 pad_r15 pad_b15 wid100">Facebook</div>
                <?php if($ctx->facebook['is_connect']=="N" || $ctx->facebook['is_connect']=="") { ?>
				<div><a class="Button" href="javascript:void(0);" onclick="albumSettings(1,'Y');"><span>Connect</span></a></div>
				<? }else { ?>
				<div><a class="Button" href="javascript:void(0);" onclick="albumSettings(1,'N');"><span>Disconnect</span></a></div>
				<? } ?>
                <div class="clear"></div>
              </div>
              <div>
                <div class="Fleft pad_t5 pad_r15 pad_b15 wid100">Google</div>
                <?php if($ctx->google['is_connect']=="N" || $ctx->google['is_connect']=="") { ?>
				<div><a class="Button" href="javascript:void(0);" onclick="albumSettings(2,'Y');"><span>Connect</span></a></div>
				<? }else { ?>
				<div><a class="Button" href="javascript:void(0);" onclick="albumSettings(2,'N');"><span>Disconnect</span></a></div>
				<? } ?>
                <div class="clear"></div>
              </div>
              <div>
                <div class="Fleft pad_t5 pad_r15 pad_b15 wid100">My Space</div>
                <?php if($ctx->myspace['is_connect']=="N" || $ctx->myspace['is_connect']=="") { ?>
				<div><a class="Button" href="javascript:void(0);" onclick="albumSettings(3,'Y');"><span>Connect</span></a></div>
				<? }else { ?>
				<div><a class="Button" href="javascript:void(0);" onclick="albumSettings(3,'N');"><span>Disconnect</span></a></div>
				<? } ?>
                <div class="clear"></div>
              </div>
              <div>
                <div class="Fleft pad_t5 pad_r15 pad_b15 wid100">Other Social Network</div>
                <?php if($ctx->others['is_connect']=="N" || $ctx->others['is_connect']=="") { ?>
				<div><a class="Button" href="javascript:void(0);" onclick="albumSettings(4,'Y');"><span>Connect</span></a></div>
				<? }else { ?>
				<div><a class="Button" href="javascript:void(0);" onclick="albumSettings(4,'N');"><span>Disconnect</span></a></div>
				<? } ?>
                <div class="clear"></div>
              </div>
            </div>
            <div id="downPagerId" class="paginat" style="padding-right:15px;"></div><div class="clear"></div>
            <div class="clear"></div>
          </div>
      </div></td>
      <td valign="top"><div class="Col">
<tal:block tal:omit-tag="" tal:content="structure php: this.action('index','activity','album')" />
</div></td>
      <td valign="top"><div class="ColBanner">
          <div class="ModuleBlock"> <img src="/images/Gads.gif" /><img src="/images/Gads.gif" /></div>
      </div></td>
    </tr>
  </table>
 <!-- Chat Window  -->
<div class="Chatbox">
<div class="Fleft pad_t2"><img src="/images/ChatAviIcon.png" /></div>
<div class="Fleft fontWht pad_115"><strong>Harinath</strong></div>
<div class="Fright"><a href="#" class="ChatBt"><strong>X</strong></a></div>
<div class="Fright"><a href="#" class="ChatBt txt18"><strong>-</strong></a></div>
</div>

<script type="text/javascript">
//<![CDATA[
function showDiv(type)
{
	if(type == 'r')
	{
		$('#rec').addClass("active");
		$('#sent').removeClass("active");
		$('#sentId').hide();
		$('#recId').show();
	} else {
		//alert(type);
		$('#rec').removeClass("active");
		$('#sent').addClass("active");
		$('#sentId').show();
		$('#recId').hide();
	}

}
function createAlbum()
{
	tb_show('Create Album','/album/index/create-album?&height=400&width=600','');
}
function albumSettings(type,action)
{
	//alert(type+"and"+action);return false;
	$.ajax({
			   
			    type: "POST",
				dataType: "json",
			    data: "type="+type+"&action="+action,
			    url: "/album/settings/changealbum-settings/",
			    success: function(data){
					$('#messageDis').html('Settings Saved');
					location.reload();					
				}
			});
}

//]]>
</script>